/* Copyright (c) 2006, 2009, Carl Burch. License information is located in the
 * com.cburch.logisim.Main source code and at www.cburch.com/logisim/. */
 
package com.cburch.logisim.std.gates;

import java.util.List;

import com.cburch.logisim.util.Strings;
import com.cburch.logisim.tools.FactoryDescription;
import com.cburch.logisim.tools.Library;

public class Other extends Library {
    private List tools = null;

    private static FactoryDescription[] DESCRIPTIONS = {
        new FactoryDescription("NotGate", Strings.getter("notGateComponent", Strings.stdSource),
                "notGate.gif", "NotGate"),
        new FactoryDescription("Tunnel", Strings.getter("tunnelComponent", Strings.stdSource),
                "tunnel.gif", "Tunnel"),
    };

    public Other() { }

    public String getName() { return "Other"; }

    public String getDisplayName() { return Strings.get("Other", Strings.stdSource); }

    public List getTools() {
        if(tools == null) {
            tools = FactoryDescription.getTools(Other.class, DESCRIPTIONS);
        }
        return tools;
    }

}
